<ion-item *ngIf="!showImage" [routerLink]="link()" [detail]="file.isDir" [disabled]="disabled">
	<ion-icon slot="start" [name]="icon"></ion-icon>
	<ion-label class="ion-text-wrap">
		{{ file.name }}
	</ion-label>
	<ion-badge *ngIf="!file.isDir && ss.settings.showSize" slot="end" color="medium">{{ file.size | byteFormat }}
	</ion-badge>
	<ion-note *ngIf="ss.settings.showDate" slot="end">{{ file.modTime | timeFormat }}</ion-note>
</ion-item>

<ion-item *ngIf="showImage" [disabled]="disabled" [src]="url" title="图片预览" [text]="file.name" ionImgViewer button>
	<ion-icon slot="start" [name]="icon"></ion-icon>
	<ion-label class="ion-text-wrap">
		{{ file.name }}
	</ion-label>
	<ion-badge *ngIf="ss.settings.showSize" slot="end" color="medium">{{ file.size | byteFormat }}</ion-badge>
	<ion-note *ngIf="ss.settings.showDate" slot="end">{{ file.modTime | timeFormat }}</ion-note>
</ion-item>
